
class Story{
	String title
	String content
	Date publishDate = new Date()
	User user
	
	static hasMany = [comments:Comment]

	
	static mapping = {
		content type:'text'
    }
	
	static constraints= {
		title(blank:false, maxSize: 255)
		content(blank:false)
		publishDate(blank:false)
	}
}
